input device drawing